package com.clouds.wms.service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.clouds.wms.bean.Purmb;
import com.clouds.wms.bean.Purmh;
import com.clouds.wms.exception.DatabaseException;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

public interface PurmhService {
	PagesBean getPurmhList(String mgaa, String mgab, int offset,int pageSize)throws SysException;
	int savePurmh(Purmh purmh)throws SysException;
	int updatePurmh(Purmh purmh)throws SysException;
	int getMaxMhac()throws SysException;
	int delPurmh(String mhaa, String mhab, String mhacs)throws SysException;
	int changeStatus(String mhaa, String mhab, String status)throws SysException;
	@Transactional(propagation=Propagation.REQUIRED, rollbackFor=DatabaseException.class)
	void delPurmgmh(String mhaa, String mhab)throws SysException;
	void delPurmhAll(String mhaa, String mhab)throws SysException;
}
